#! /usr/bin/env python
#coding=utf-8

# “睚眦必报”（payback）player，除非对手撒谎，否则自己诚实

import random
last_results = {}

def play(i_arena):
    card = 'H'
    # print last_results
    try:
        if last_results[i_arena]['o_card'] == 'C':
            card = 'C'
    except Exception:
        pass
    # print "Payback: %s" % (card)
    return card

def feedback(i_arena, my_card, my_result, o_card, o_result):
    global last_results
    last_results[i_arena] = {'id':i_arena, 'my_card':my_card, 'my_result':my_result, 'o_card':o_card, 'o_result':o_result}
